from django import template
register = template.Library()


@register.filter(name="images")
def images(value):
    if value == '0':
        return "<img src='/static/news/images/dsh.png' style='position: absolute;right: 0px; top: 0px;'>"
    elif value == '1':
        return ""
    else:
        return "<img src='/static/news/images/wtg.png' style='position: absolute;right: 0px; top: 0px;'>"